Checking for up-to-date pkg versions and update if necessary. #4028
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
update
function is a custom script that checks for updates for the installed packages from thepackages
andaur
directories. It compares the local and remote versions of each package and prompts the user to install the updates if available.To use the
update
function, simply run it in a terminal without any arguments. It will print a message indicating the progress of the check and the list of packages that have updates available. For example:The user can then enter
Y
ory
to confirm the installation,N
orn
to cancel the installation, or any other input to abort the operation. The function will then call thedo_sync
function for each package that needs to be updated.I hope you will like this, I wish everybody a great day!